<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
	<head>
		<title>Gestione Fornitori</title>

		<link rel="stylesheet" href="css/amm_index.css" type="text/css"/>
		<link rel="stylesheet" href="css/amm_fornitore.css" type="text/css" media="all" />

		<meta name="author" content="Mattia Coccato">
		
		<script type="text/javascript" src="jQuery/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="js/controlliInput.js"></script>
		<script type="text/javascript" src="js/amm_fornitore.js"></script>
		
		<script type="text/javascript">
			<% if((session.getAttribute("utente")==null) || !((Boolean)(session.getAttribute("amministrativo")))) out.print("window.location=\"index.jsp\";"); %>
		</script>
	
	</head>
	<body  onload="resetFormDettaglio();">
		<jsp:include page="amm_menu.jsp"/>

	        <div id="main-div">
			
			<h2>Gestione dei fornitori</h2>	
		

			<div id="selezioneFornitore">
				<!--<input type="button" onclick="resetFormDettaglio();" value="Inserisci nuovo evento..."></input><br /><br />-->
				<a href="javascript:resetFormDettaglio();">Inserisci nuovo fornitore...</a>
				<p>oppure seleziona il fornitore da modificare:</p>
				<div id="listaFornitori">
					<jsp:include page="../admin/get-fornitori" />
				</div>
			</div>
			<div id="form-data">
				<br />
				<form id="form-core" action="" onsubmit="return submitForm()">
					<input type="hidden" id="isNuovo" name="isNuovo" value="false"></input>
					<fieldset id="infoGenerali" class="fieldSetCorpo">
						<legend>Informazioni fornitore:</legend>
						<table class="form-table">
							<tr>
								<td><label class="etichettaCampi" for="partitaIVA">Partita IVA:</label></td>
								<td><input type="text" class="campoDiTesto" name="partitaIVA" id="partitaIVA"></input> </td>
							</tr>
							<tr>
								<td><label class="etichettaCampi" for="nome">Nome:</label></td>
								<td><input type="text" class="campoDiTesto" name="nome" id="nome"></input> </td>
							</tr>
							<tr>
								<td><label class="etichettaCampi" for="telefono">Telefono:</label></td>
								<td><input type="text" class="campoDiTesto" name="telefono" id="telefono"></input> </td>
							</tr>
							<tr>
								<td><label class="etichettaCampi" for="email">Email:</label></td>
								<td><input type="text" class="campoDiTesto" name="email" id="email"></input> </td>
							</tr>
							<tr>
								<td><label class="etichettaCampi" for="url">URL:</label></td>
								<td><input type="text" class="campoDiTesto" name="url" id="url"></input> </td>
							</tr>	
						</table>
					</fieldset>
					<center><input type="submit" value="Inserisci" id="submitButton"></input></center>
				</form>
				<div id="messaggi-utente"></div><br>
			</div>
		</div>
	</body>
</html>
